package com.framework.modules.transaction;


import com.framework.exception.util.RespResult;
import com.framework.modules.sys.controller.AbstractController;
import com.framework.page.PageUtils;
import com.framework.service.yhbservice.YhbTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


@RestController
@RequestMapping("sys/transaciton")
public class TransactionController extends AbstractController {
    @Autowired
    private YhbTransactionService yhbTransactionService;

    @RequestMapping("list")
    public RespResult list(@RequestParam Map<String,Object> params){
        params.put("sysUserId",getDeptUserId());
        PageUtils page=yhbTransactionService.queryTransactionPage(params);
        return RespResult.ok().put("page",page);
    }



}
